package com.neusoft.neu24.nep.controller;

import com.neusoft.neu24.nep.entity.CommonResult;
import com.neusoft.neu24.nep.service.INacosConsumerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("c")
public class NacosConsumerController {
    @Autowired
    INacosConsumerService consumerService;

    @GetMapping("/wx/pay/{wxid}")
    public CommonResult selectAccountByWxid(@PathVariable("wxid") String wxid) {
        return consumerService.selectAccountByWxid(wxid);

    }
}
